package com.jeecms.wicool.dao.activities;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.activities.NewInfo;

public interface NewInfoDao {
	public Pagination getPage(String title,Date publishTime, int pageNo, int pageSize);
	public NewInfo findById(Integer id);
	public NewInfo updateByUpdater(Updater<NewInfo> updater);
	public NewInfo update(NewInfo  entity);	
	public NewInfo save(NewInfo bean);
	public NewInfo deleteById(Integer id);
	public ArrayList<NewInfo>  deleteByIds(Integer[] ids);
	public List<NewInfo> getAll(CmsUser newInfo);
}
